﻿using MediatR;
using Traceability.ErrorCode;

namespace Traceability.APP.Application.Command.Traceability
{
    public class GetAddTraceabilityCommon : IRequest<APIResult<int>>
    {
        /// <summary>
        /// 主键ID
        /// </summary>
        public int ID { get; set; }

        /// <summary>
        /// 商品ID
        /// </summary>
        public int SID { get; set; }

        /// <summary>
        /// 生产批次(唯一)
        /// </summary>
        public string Batch { get; set; }

        /// <summary>
        /// 保质期
        /// </summary>
        public string ShelfLife { get; set; }

        /// <summary>
        /// 生产许可证号
        /// </summary>
        public string Production { get; set; }

        /// <summary>
        /// 生产企业
        /// </summary>
        public string Enterprise { get; set; }

        /// <summary>
        /// 商品名称
        /// </summary>
        public string Shop_Name { get; set; }

        /// <summary>
        /// 信息完善度
        /// </summary>
        //public int Message { get; set; }


        /// <summary>
        /// 创建人
        /// </summary>
        public string CreateName { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; } = DateTime.Now;

        /// <summary>
        /// 修改人
        /// </summary>
        public string? UpdateName { get; set; }

        /// <summary>
        /// 修改时间
        /// </summary>
        public DateTime? UpdateTime { get; set; }

        /// <summary>
        /// 删除标识
        /// </summary>
        public bool IsDeleted { get; set; } = false;

    }
}
